﻿@{
    ViewBag.Title = "Index Usuarios";
}


    <br/><br/><br/>
<div align="center">
    <img src="~/Content/images/usuarios.png" />
    <br/><br/>
    <table class="table table-striped">
        <thead>
            <tr>
                <th>Id</th>
                <th>Username</th>
                <th>Nombre Real</th>
                <th>Mail</th>
                <th>Codigo Empresa</th>

                <th>Acciones</th>
            </tr>
        </thead>
        <tbody>
            @foreach (Model.Usuario item in Model)
            {
                <tr>
                    <td>@item.id</td>
                    <td>@item.username</td>
                    <td>@item.realName</td>
                    <td>@item.mail</td>
                    <td>@item.idCodigo</td>


                    <td>
                        <a href="@Url.Action("borrar", "Usuario", new { id=item.id  })">Borrar</a>
                        <a href="@Url.Action("Editar", "Usuario", new { id=item.id  })">Editar</a>
                    </td>
                </tr>
            }
        </tbody>
    </table>

    <a href="@Url.Action("Agregar", "Usuario")"> <button type="button" class="btn btn-primary">Agregar Usuario</button></a>
    <br/><br/>
    <a href="@Url.Action("Logout", "Account")"><button type="button" class="btn btn-primary">Logout</button></a>
</div>